/**
 * 版权所有 (C), 2019-2019, XXX有限公司
 * 项目名：com.company.study.designpatterns.exterior
 * 文件名: Car
 * 日期: 2019/6/16 9:23
 * 说明:
 */
package com.company.study.designpatterns.exterior;

/**
 * @author Anbang713
 * @create 2019/6/16
 */
public class Car {
    private Engine engine;
    private Armaturenbrett armaturenbrett;
    private Headlight headlight;

    public Car() {
        this.engine = new Engine();
        this.armaturenbrett = new Armaturenbrett();
        this.headlight = new Headlight();
    }

    public void start() {
        System.out.println("启动汽车...");
        engine.start();
        armaturenbrett.start();
        headlight.start();
        System.out.println("汽车已启动...");
    }
}